package com.hzdl.car.util;

import lombok.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@ToString
public class TreeNode implements Serializable {

    private Integer id;
    private Integer pid;

    // 参考navs.json
    private String title;
    private String icon;
    private String href;
    private Boolean spread;
    private String target;
    //添加checkArr属性 checkbox
    private String checkArr="0";


    private List<TreeNode> children = new ArrayList<>();

    public TreeNode(Integer id, Integer pid, String title, String icon, String href, Boolean spread) {
        this.id = id;
        this.pid = pid;
        this.title = title;
        this.icon = icon;
        this.href = href;
        this.spread = spread;
    }
}
